<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<%
      String alarmInfo = (String)java.net.URLDecoder.decode(request.getParameter("alarmInfo"),"UTF-8");
      String parentFrameId = (String)request.getParameter("parentFrameId");
      String callBackOKMethodName = (String)request.getParameter("callBackOKMethodName");
      String callBackCancelMethodName = (String)request.getParameter("callBackCancelMethodName");
%>

<html>
  <head>
    <title>询问</title>
	<link href="${ctx}/styles/index.css" rel="stylesheet" type="text/css">
	<link href="${ctx}/styles/public.css" rel="stylesheet" type="text/css">
    <link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css">
	<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public.js"></script>
	<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
	<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_header"></td>
  </tr>
  <tr>
    <td class="table_header_line_1"></td>
  </tr>
  <tr>
    <td class="table_header_line_2"></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="26" height="72"></td>
          <td width="48"><img src="${ctx}/images/aux_wenhao.gif" alt="" width="48" height="48" border="0" align="absmiddle"></td>
          <td width="20">&nbsp;</td>
          <td id="alarmInfo"><%=alarmInfo%></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="15"></td>
  </tr>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr>
    <td valign="bottom">
    <table border="0" cellpadding="0" cellspacing="0" onClick="doCallBackOKMethodName();closewin()">
      <tr>
        <td class="buttonOffLeft" id="btn1_41"></td>
        <td class="buttonOffMiddle" id="btn1_42" onblur="btn_change(4)" onMouseOver="btn_change_over(4)" onMouseOut="btn_change_out(4)">
        	<a href="#" onFocus="this.blur()">
        		<img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom"></a> 确 定
        </td>
        <td class="buttonOffRight" id="btn1_43"></td>
      </tr>
    </table></td>
    <td width="6">&nbsp;</td>
    <td valign="bottom"><table border="0" cellpadding="0" cellspacing="0" onClick="doCallBackCancelMethodName();closewin();">
      <tr>
        <td class="buttonOffLeft" id="btn1_51"></td>
        <td class="buttonOffMiddle" id="btn1_52" onblur="btn_change(5)" onMouseOver="btn_change_over(5)" onMouseOut="btn_change_out(5)"><a href="#" onFocus="this.blur()"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom"></a> 取 消</td>
        <td class="buttonOffRight" id="btn1_53"></td>
      </tr>
    </table></td>
  </tr>
</table>

</body>

<script type="text/javascript">
    var alarmInfo ="<%=alarmInfo%>";
    var parentFrameId ="<%=parentFrameId%>";
    var callBackOKMethodName ="<%=callBackOKMethodName%>";
    var callBackCancelMethodName ="<%=callBackCancelMethodName%>";
    //document.getElementById("alertInfo").innerHTML = findFrame('main').alertInfo;

	//执行点击确定的回调函数
	function doCallBackOKMethodName(){
	   //两种方法都可以
	   //eval("findFrame('"+parentFrameId+ "')." + callBackOKMethodName+"()");
	   eval("findFrame('"+parentFrameId+ "')." + callBackOKMethodName)();
	}

	//执行点击取消的回调函数
	function doCallBackCancelMethodName(){
	   //两种方法都可以
	   //eval("findFrame('"+parentFrameId+ "')." + callBackCancelMethodName+"()");
	   eval("findFrame('"+parentFrameId+ "')." + callBackCancelMethodName)();
	}

	//关闭当前窗口
	function closewin(){
	  if(this.windowClose){
		 windowClose('AskConfirm');
	  }else{
	     top.windowClose('AskConfirm');
	  }
	}
</script>
</html>